<template>
  <div class="father-box">
    <h1>演练场主页面</h1>
    <!-- el-menu 大的导航菜单
           default-active 设置激活高亮的是哪个菜单 和 底下菜单 index 对应
           background-color 菜单背景色
           text-color 文本默认颜色
           active-text-color 激活时文本颜色

         el-menu
           el-menu-item 菜单项
           el-menu-item 菜单项
           el-menu-item 菜单项

         el-menu
           el-submenu 子菜单 (可折叠, 可展开)
             el-menu-item 菜单项
             el-menu-item 菜单项
             el-menu-item 菜单项

           el-submenu 子菜单 (可折叠, 可展开)
             el-menu-item 菜单项
             el-menu-item 菜单项
             el-menu-item 菜单项

           el-menu-item 菜单项
           el-menu-item 菜单项
     -->
    <el-menu
      default-active="1-3"
      class="el-menu-vertical-demo"
      background-color="#545c64"
      text-color="#fff"
      active-text-color="#ff0000"
    >
      <el-submenu index="1">
        <!-- 点击的折叠标题 -->
        <template #title>
          <i class="el-icon-location" />
          <span>导航一</span>
        </template>

        <!-- 内容部分 -->
        <el-menu-item index="1-1">
          <i class="el-icon-menu" />
          <span slot="title">商品列表</span>
        </el-menu-item>

        <el-menu-item index="1-2">
          <i class="el-icon-document" />
          <span slot="title">商品出货</span>
        </el-menu-item>
      </el-submenu>

      <el-menu-item index="2">
        <i class="el-icon-menu" />
        <span slot="title">导航二</span>
      </el-menu-item>

      <el-menu-item index="4">
        <i class="el-icon-setting" />
        <span slot="title">导航四</span>
      </el-menu-item>
    </el-menu>
  </div>
</template>

<script>
export default {

}
</script>

<style>
.father-box {
  width: 300px;
}
</style>
